export type DiscoverTabs =
  | "talk"
  | "course"
  | "exhibition"
  | "publication"
  | "about";

// Added due to setting as numbers start looking ugly
export const enum DiscoverTabsEnum {
  Courses = 0,
  Talks = 1,
  Exhibitions = 2,
  Publications = 3,
  About = 4,
}

export const tabLookup: {
  [key in DiscoverTabs]: {
    zh: string;
  };
} = {
  course: {
    zh: "课程",
  },
  talk: {
    zh: "讲座",
  },
  exhibition: {
    zh: "展览",
  },
  publication: {
    zh: "出版物",
  },
  about: {
    zh: "关于我们",
  },
};

// Setup to easily allow for translations
export const DISCOVER_TABS = [
  tabLookup.course.zh,
  tabLookup.talk.zh,
  tabLookup.exhibition.zh,
  tabLookup.publication.zh,
  tabLookup.about.zh,
];
